<?php
declare (strict_types = 1);

namespace app\common\model;

use think\Model;
use think\response\Json;

/**
 * @mixin \think\Model
 */
class ProTopic extends Base
{

    protected $name = 'pro_topic';

    public function pro()
    {
        return $this->hasOne(Pro::class, 'id', 'pro_id')->field('id,title');
    }
    public function procate()
    {
        return $this->hasOne(ProCate::class, 'id', 'cate_id')->field('id,title');
    }

}
